<?php $this->load->view("general/header");?>
<div id="product" class="page_">
    <div class="form">            	
        <div class="form_header">Add Product</div>
        <div class="content_data">
            <form method="post" action="<?php echo base_url();?>product" enctype="multipart/form-data">
                <div class="title">Name</div> <div class="input"><input type="text" name="name" /></div>
                <div class="clear"></div>
                <div class="title">Price</div> <div class="input"><input type="text" name="price" /></div>
                <div class="clear"></div>
                <div class="title">Short Description</div> <div class="input">
                    <textarea name="short_description" id="elm1" cols="80" rows="20"></textarea>
                </div>
                <div class="clear"></div>
                <div class="title">Long Description</div> <div class="input">
                    <textarea name="long_description" id="elm2" cols="80" rows="20"></textarea>
                </div>
                <div class="clear"></div>
                <div class="title">Check if this product is MICE</div> <div class="input"><input type="checkbox" name="is_mice" value="is_mice" /></div>
                <div class="clear"></div>
                <div class="title">Check if this product is in promo</div> <div class="input"><input type="checkbox" name="pin_promo" value="pin_promo" /></div>
                <div class="clear"></div>
                <div class="title">Image Logo</div> <div class="input"><input type="file" name="image" /></div>
                <div class="clear"></div>
                <input type="submit" name="btnSave" value="Save" class="button_red" />
            </form>
            <div class="success"><?php echo (isset($pesan))?$pesan:"";?></div>
        </div>
        <div class="form_header">Product List</div>
        <div class="filter">
        	Sort By : <select id="sort_by">
                    <option value="news_title">Name</option>
            		<option value="update_date">Price</option>
            		<option value="is_published">Mice</option>
            		<option value="is_published">Promo</option>
                </select>
                <select id="type_sort">
                	<option value="asc">Asc</option>
                    <option value="desc">Desc</option>
                </select>
                <input type="button" id="btnFilter" value="Filter" class="button_red" />
        </div>
        <div class="search_previous_order">
			Search Product : <input type="text" id="search_product_list" />
        </div>
        <div id="product_list">
        	<div class="title col1">Name</div>
            <div class="title col2">Price</div>
            <div class="title col3">Short Description</div>
            <div class="title col4">MICE</div>
            <div class="title col5">Promo</div>
            <div class="clear"></div>
            <!-- perulangan -->
           	<div class="odd">
                <div class="col1">Name</div>
                <div class="col2">Price</div>
                <div class="col3">Short Description</div>
                <div class="col4">MICE</div>
                <div class="col5">Promo</div>
                <div class="col6"><a href="<?php echo base_url();?>admin/product/detail/product_id" class="button_red">Detail/Edit</a> <a href="<?php echo base_url();?>admin/product/delete/product_id" onclick="return confirm('Are you sure want to delete this product?');"><img src="<?php echo base_url();?>img/btndelete.png" title="delete" /></a></div>
			</div>
            <div class="even">
                <div class="col1">Name</div>
                <div class="col2">Price</div>
                <div class="col3">Short Description</div>
                <div class="col4">MICE</div>
                <div class="col5">Promo</div>
                <div class="col6"><a href="<?php echo base_url();?>admin/product/detail/product_id" class="button_red">Detail/Edit</a> <a href="<?php echo base_url();?>admin/product/delete/product_id" onclick="return confirm('Are you sure want to delete this product?');"><img src="<?php echo base_url();?>img/btndelete.png" title="delete" /></a></div>
            </div>
            <!-- akhir perulangan -->
            <div class="paging"><a href="" alt="banner_id">1</a><b>2</b></div>
        </div>
        
    </div>
</div>
<?php $this->load->view("general/footer");?>